import React, { Component } from 'react'
import Todoitem from './Todoitem'

export default class Items extends Component {
    render() {
        return (
            <ul>
                {
                    this.props.list.map((item)=>{
                    return <Todoitem id={item.id} del={this.props.del} edit={this.props.edit} key={item.id}>{item.name}</Todoitem>
                    })
                }
            </ul>
        )
    }
}
